<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/task5.js"></script>
    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }

        #app {
            width: 300px;
            text-align: center;
        }

        #app h1:hover {
            background-color: cornflowerblue;
            cursor: pointer;
        }

        #app ul {
            display: none;
        }

        li {
            list-style: none;
            background-color: #FF9966;
            border: 1px solid #fff;
            height: 60px;
            line-height: 60px;
        }

        li a {
            font-size: 24px;
            font-weight: 800;
            color: black;
            text-decoration: none;
        }
    </style>
</head>

<body>
    <div id="app">
        <h1 onclick=" showList()">前端课程</h1>
        <ul id="list">
            <li><a href="#">HTML</a></li>
            <li><a href="#">CSS</a></li>
            <li><a href="#">JS</a></li>
            <li><a href="#">CAVVER</a></li>
        </ul>
    </div>

</body>

</html>